package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcNursingRecordsMapper;
import com.csun.cmny.provider.model.domain.OmcNursingRecords;
import com.csun.cmny.provider.model.dto.nursingRecords.NursingRecordsQueryDto;
import com.csun.cmny.provider.model.vo.nursingRecords.NursingRecordsVo;
import com.csun.cmny.provider.service.OmcNursingRecordsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcNursingRecordsServiceImpl extends BaseService<OmcNursingRecords> implements OmcNursingRecordsService {

    @Resource
    private OmcNursingRecordsMapper nursingRecordsMapper;
    @Override
    public List<NursingRecordsVo> selectPageQueryByOld(NursingRecordsQueryDto nursingRecordsQueryDto) {
        return nursingRecordsMapper.selectPageQueryByOld(nursingRecordsQueryDto);
    }
}
